
import request from '@/utils/request'

/**
 * 新增AgentLevel
 * @param pram
 */
export function AgentLevelCreateApi(data) {
    return request({
        url: 'admin/agentLevel/save',
        method: 'POST',
        data: data
    })
}

/**
 * agentlevel更新
 * @param pram
 */
export function agentlevelUpdateApi(data) {
    return request({
        url: 'admin/agentLevel/update',
        method: 'POST',
        data: data
    })
}

/**
 * agentlevel详情
 * @param pram
 */
export function agentlevelDetailApi(id) {
    return request({
        url: `admin/agentLevel/info/${id}`,
        method: 'GET'
    })
}

/**
 * agentlevel删除
 * @param pram
 */
export function agentlevelDeleteApi(ids) {
    return request({
        url: `admin/agentLevel/delete`,
        method: 'post',
        data: ids
    })
}


/**
 * agentlevel列表
 * @param pram
 */
export function agentlevelListApi(params) {
    return request({
        url: 'admin/agentLevel/list',
        method: 'GET',
        params
    })
}

// 所有
export function agentLevelAll() {
    return request({
        url: 'admin/agentLevel/all',
        method: 'GET'
    })
}

